/* 
 * File:   DijkstraInfo.hpp
 * Author: Francesco
 *
 * Created on 17 dicembre 2012, 14.26
 */

#ifndef DIJKSTRAINFO_HPP
#define	DIJKSTRAINFO_HPP

#include "Vertex.hpp"

template <typename I>
class DijkstraInfo {
public:

    DijkstraInfo(Vertex<I>* current,int distance, Vertex<I>* parent) {
        this->current = current;
        this->distance = distance;
        this->parent = parent;
    }

    ~DijkstraInfo() {
    }

    int getDistance() {
        return distance;
    }

    Vertex<I>* getParent() {
        return parent;
    }
     Vertex<I>* getCurrent() {
        return current;
    }

     void setCurrent(Vertex<I>* current) {
        this->current=current;
    }
    void setDistance(int distance) {
        this->distance = distance;
    }

    void setParent(Vertex<I> *parent) {
        this->parent = parent;
    }
private:
    int distance;
    Vertex<I>* parent,*current;
};

#endif	/* DIJKSTRAINFO_HPP */

